<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>{php if(isset($title)) $_W['page']['title'] = $title}{if !empty($_W['page']['title'])}{$_W['page']['title']}{/if}{if empty($_W['page']['copyright']['sitename'])}{if IMS_FAMILY != 'x'} 智商{/if}{else} - {$_W['page']['copyright']['sitename']}{/if}</title>
    <meta name="keywords" content="{if empty($_W['page']['copyright']['keywords'])}{if IMS_FAMILY != 'x'}智商{/if}{else}{$_W['page']['copyright']['keywords']}{/if}" />
    <meta name="description" content="{if empty($_W['page']['copyright']['description'])}{if IMS_FAMILY != 'x'}智商{/if}{else}{$_W['page']['copyright']['description']}{/if}" />

    <link rel="stylesheet" href="{KB_WEB_BACK_CSS}/bootstrap.min.css">
    <link rel="stylesheet" href="{KB_WEB_BACK_CSS}/bootstrap-table.min.css">
    <link rel="stylesheet" href="{KB_WEB_BACK_CSS}/reset.css"/>
    <link rel="stylesheet" href="{KB_WEB_BACK_CSS}/style.css"/>

    <link rel="stylesheet" href="{KB_WEB_BACK_JS}/skin/default/layer.css">

    <script src="{KB_WEB_BACK_JS}/require.js"></script>

    <script type="text/javascript">
        //统一配置文件
        require.config({
            baseUrl: "/addons/wherein_knowledge/application/web/view/static/back_end/js",
            paths: {
                "jquery": 'jquery.min',

                "bootstrap" : "bootstrap.min",
                "bootstrap-table": 'bootstrap-table',
                "bootstrap-table-zh-CN" : 'bootstrap-table-zh-CN',
                "layer": 'layer',
                "common": 'common',
                "datepicker": 'DatePicker/WdatePicker',
                "ztree.all" : "jquery.ztree.all",

                "kindeditor" : './kindeditor/kindeditor-all-min',
                "kindeditor-zh" : './kindeditor/lang/zh-CN',
                "clipboard" : 'ZeroClipboard',

                "lightbox" : './lightbox/js/lightbox',
            },
            shim: {
                "common":{
                    deps:['jquery']
                },
                'bootstrap' : {
                    deps:['jquery']
                },
                "layer":{
                    deps:['jquery'],
                },
                "bootstrap-table" : {
                    deps : ["jquery","bootstrap"]
                },
                "bootstrap-table-zh-CN" : {
                    deps : ["bootstrap-table"]
                },
                "ztree.all" : {
                    deps : ['jquery', 'css!../css/metroStyle.css'],
                    exports:'$.fn.zTree'
                },
                'lightbox' : {
                    deps:['jquery', 'css!../js/lightbox/css/lightbox.css']
                }

            },
            map: {'*': {'css': 'require-css'}},
            urlArgs: "v=static",
            waitSeconds: 0,//在加载脚本之前要等待的秒数
        });

    </script>

</head>
<body>
<!-- 头部 -->
<div class="header">
    <div class="user-info">
        <div class="usr">
            <span class="name">{$_W['account']['name']}</span>
            <i class="triangle"></i>
            <ul class="drop">
                {if $_W['role'] != 'operator'}
                <li>
                    <a class="edi_data" href="{php echo url('account/post', array('uniacid' => $_W['uniacid'], 'acid' => $_W['acid']))}" target="_blank">
                        <span class="text">编辑当前账号资料</span>
                    </a>
                </li>
                {/if}
                <li>
                    <a class="man_gzh" href="{url 'account/display'}">
                        <span class="text">管理其他公众号</span>
                    </a>
                </li>
                <li>
                    <a class="return_sys" href="{if $row['type'] != 'system'}./index.php?c=home&a=welcome&do=ext{else}./index.php?c=platform&a=reply{/if}&m=wherein_knowledge">
                        <span class="text">返回系统</span>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>

<!-- 左侧菜单 -->
<div class="sideBar">
    <a class="logo" href="javascript:;" style="display: flex;padding:8px 5px;line-height: 1;">
        <img src="{php echo getSite('site_logo') ? tomedia(getSite('site_logo')) : KB_WEB_BACK_IMG.'/logo.png'}" style="margin-left: 0">
        <div class="logo-text" style="line-height: 20px;padding:4px 5px;font-size: 14px;color: #AAAAAA">{php echo getSite('site_name')}</div>
    </a>
    <ul>
        <li class="barList">
            <a class="pic clearfix {if $_GPC['do'] == 'employee'}act{/if}" href="{php echo $this->createWebUrl('employee', array('act' => 'index'));}">
                <span class="icon"></span>
                <span class="text">员工管理</span>
            </a>
        </li>
        <li class="barList">
            <a class="pic clearfix {if $_GPC['do'] == 'knowledge' || $_GPC['do'] == 'orders'}act{/if}" href="{php echo $this->createWebUrl('knowledge', array('act' => 'index'));}">
                <span class="icon"></span>
                <span class="text">知识库</span>
            </a>
            <ul class="show">
                <li class="twoMenuLi">
                    <a class="pic clearfix {if $_GPC['do'] == 'knowledge' && ($_GPC['act'] == 'index' || $_GPC['act'] == 'operate' || $_GPC['act'] == 'excelQuestion')}act{/if}" href="{php echo $this->createWebUrl('knowledge', array('act' => 'index'));}">
                        <span class="icon"></span>
                        <span class="text">知识库管理</span>
                    </a>
                </li>
                <li class="twoMenuLi">
                    <a class="pic clearfix {if $_GPC['do'] == 'orders' && $_GPC['act'] == 'index'}act{/if}" href="{php echo $this->createWebUrl('orders', array('act' => 'index'));}">
                        <span class="icon"></span>
                        <span class="text">工单管理</span>
                    </a>
                </li>
                <li class="twoMenuLi">
                    <a class="pic clearfix {if $_GPC['do'] == 'knowledge' && $_GPC['act'] == 'question'}act{/if}" href="{php echo $this->createWebUrl('knowledge', array('act' => 'question'));}">
                        <span class="icon"></span>
                        <span class="text">常见问题列表</span>
                    </a>
                </li>
                <li class="twoMenuLi">
                    <a class="pic clearfix {if $_GPC['do'] == 'label' && ($_GPC['act'] == 'index' || $_GPC['act'] == 'operate') || $_GPC['act'] == 'excelLabel'}act{/if}" href="{php echo $this->createWebUrl('label', array('act' => 'index'));}">
                        <span class="icon"></span>
                        <span class="text">标签库</span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="barList">
            <a class="pic clearfix {if $_GPC['do'] == 'system'}act{/if}" href="{php echo $this->createWebUrl('system', array('act' => 'index'));}">
                <span class="icon"></span>
                <span class="text">设置中心</span>
            </a>
        </li>
    </ul>
</div>
